﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ERPStore.Services
{
	public interface IServiceBus
	{
		void RegisterQueuesFromConfig(string configFileName = null);
		void RegisterQueue(string queueName, Type typeReader, Type typeMedium = null);
		void StartReading();
		void StopReading();
		void PauseReading();
		void Send<T>(string queueName, T body, string label = null);
	}
}
